package com.nbsaas.boot.marketing.rest.convert;

import com.nbsaas.boot.marketing.data.entity.PromotionProduct;
import com.nbsaas.boot.marketing.api.domain.response.PromotionProductResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 活动商品-实体对象转化成响应对象
*/

public class PromotionProductResponseConvert  implements Converter<PromotionProductResponse,PromotionProduct> {

    @Override
    public PromotionProductResponse convert(PromotionProduct source) {
        PromotionProductResponse  result = new  PromotionProductResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

